import math

number = (int)(input('请输入一个正整数'))
print(math.factorial(number))
